<!DOCTYPE html><html lang="zh-CN" data-theme="light"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"><title>hexo：搭建自己的blog | kiloGrand</title><meta name="keywords" content="hexo"><meta name="author" content="kiloGrand"><meta name="copyright" content="kiloGrand"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="#ffffff"><meta name="description" content="hexo博客搭建过程">
<meta property="og:type" content="article">
<meta property="og:title" content="hexo：搭建自己的blog">
<meta property="og:url" content="https://kilogrand.gitee.io/2020/08/18/blog-building/index.html">
<meta property="og:site_name" content="kiloGrand">
<meta property="og:description" content="hexo博客搭建过程">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://kilogrand.gitee.io/img/lab.jpg">
<meta property="article:published_time" content="2020-08-18T01:41:10.000Z">
<meta property="article:modified_time" content="2022-09-02T05:05:32.943Z">
<meta property="article:author" content="kiloGrand">
<meta property="article:tag" content="hexo">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://kilogrand.gitee.io/img/lab.jpg"><link rel="shortcut icon" href="/img/favicon.png"><link rel="canonical" href="https://kilogrand.gitee.io/2020/08/18/blog-building/"><link rel="preconnect" href="//cdn.jsdelivr.net"/><link rel="preconnect" href="//busuanzi.ibruce.info"/><link rel="stylesheet" href="/css/index.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6/css/all.min.css" media="print" onload="this.media='all'"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox.css" media="print" onload="this.media='all'"><script>const GLOBAL_CONFIG = { 
  root: '/',
  algolia: undefined,
  localSearch: {"path":"/search.xml","preload":false,"languages":{"hits_empty":"找不到您查询的内容：${query}"}},
  translate: undefined,
  noticeOutdate: undefined,
  highlight: {"plugin":"highlighjs","highlightCopy":true,"highlightLang":true,"highlightHeightLimit":false},
  copy: {
    success: '复制成功',
    error: '复制错误',
    noSupport: '浏览器不支持'
  },
  relativeDate: {
    homepage: false,
    post: false
  },
  runtime: '',
  date_suffix: {
    just: '刚刚',
    min: '分钟前',
    hour: '小时前',
    day: '天前',
    month: '个月前'
  },
  copyright: undefined,
  lightbox: 'fancybox',
  Snackbar: undefined,
  source: {
    justifiedGallery: {
      js: 'https://cdn.jsdelivr.net/npm/flickr-justified-gallery@2/dist/fjGallery.min.js',
      css: 'https://cdn.jsdelivr.net/npm/flickr-justified-gallery@2/dist/fjGallery.min.css'
    }
  },
  isPhotoFigcaption: false,
  islazyload: false,
  isAnchor: true
}</script><script id="config-diff">var GLOBAL_CONFIG_SITE = {
  title: 'hexo：搭建自己的blog',
  isPost: true,
  isHome: false,
  isHighlightShrink: false,
  isToc: true,
  postUpdate: '2022-09-02 13:05:32'
}</script><noscript><style type="text/css">
  #nav {
    opacity: 1
  }
  .justified-gallery img {
    opacity: 1
  }

  #recent-posts time,
  #post-meta time {
    display: inline !important
  }
</style></noscript><script>(win=>{
    win.saveToLocal = {
      set: function setWithExpiry(key, value, ttl) {
        if (ttl === 0) return
        const now = new Date()
        const expiryDay = ttl * 86400000
        const item = {
          value: value,
          expiry: now.getTime() + expiryDay,
        }
        localStorage.setItem(key, JSON.stringify(item))
      },

      get: function getWithExpiry(key) {
        const itemStr = localStorage.getItem(key)

        if (!itemStr) {
          return undefined
        }
        const item = JSON.parse(itemStr)
        const now = new Date()

        if (now.getTime() > item.expiry) {
          localStorage.removeItem(key)
          return undefined
        }
        return item.value
      }
    }
  
    win.getScript = url => new Promise((resolve, reject) => {
      const script = document.createElement('script')
      script.src = url
      script.async = true
      script.onerror = reject
      script.onload = script.onreadystatechange = function() {
        const loadState = this.readyState
        if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
        script.onload = script.onreadystatechange = null
        resolve()
      }
      document.head.appendChild(script)
    })
  
      win.activateDarkMode = function () {
        document.documentElement.setAttribute('data-theme', 'dark')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#0d0d0d')
        }
      }
      win.activateLightMode = function () {
        document.documentElement.setAttribute('data-theme', 'light')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#ffffff')
        }
      }
      const t = saveToLocal.get('theme')
    
          if (t === 'dark') activateDarkMode()
          else if (t === 'light') activateLightMode()
        
    const detectApple = () => {
      if(/iPad|iPhone|iPod|Macintosh/.test(navigator.userAgent)){
        document.documentElement.classList.add('apple')
      }
    }
    detectApple()
    })(window)</script><meta name="generator" content="Hexo 5.4.2"></head><body><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="avatar-img is-center"><img src="/img/profile.png" onerror="onerror=null;src='/img/friend_404.gif'" alt="avatar"/></div><div class="sidebar-site-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">46</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">6</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">5</div></a></div><hr/><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 主页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 归档</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fas fa-link"></i><span> Link</span></a></div></div></div></div><div class="post" id="body-wrap"><header class="post-bg" id="page-header" style="background-image: url('/img/lab.jpg')"><nav id="nav"><span id="blog_name"><a id="site-name" href="/">kiloGrand</a></span><div id="menus"><div id="search-button"><a class="site-page social-icon search"><i class="fas fa-search fa-fw"></i><span> 搜索</span></a></div><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 主页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 归档</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fas fa-link"></i><span> Link</span></a></div></div><div id="toggle-menu"><a class="site-page"><i class="fas fa-bars fa-fw"></i></a></div></div></nav><div id="post-info"><h1 class="post-title">hexo：搭建自己的blog</h1><div id="post-meta"><div class="meta-firstline"><span class="post-meta-date"><i class="far fa-calendar-alt fa-fw post-meta-icon"></i><span class="post-meta-label">发表于</span><time class="post-meta-date-created" datetime="2020-08-18T01:41:10.000Z" title="发表于 2020-08-18 09:41:10">2020-08-18</time><span class="post-meta-separator">|</span><i class="fas fa-history fa-fw post-meta-icon"></i><span class="post-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2022-09-02T05:05:32.943Z" title="更新于 2022-09-02 13:05:32">2022-09-02</time></span><span class="post-meta-categories"><span class="post-meta-separator">|</span><i class="fas fa-inbox fa-fw post-meta-icon"></i><a class="post-meta-categories" href="/categories/%E5%85%B6%E4%BB%96/">其他</a></span></div><div class="meta-secondline"><span class="post-meta-separator">|</span><span class="post-meta-wordcount"><i class="far fa-file-word fa-fw post-meta-icon"></i><span class="post-meta-label">字数总计:</span><span class="word-count">1.1k</span><span class="post-meta-separator">|</span><i class="far fa-clock fa-fw post-meta-icon"></i><span class="post-meta-label">阅读时长:</span><span>4分钟</span></span><span class="post-meta-separator">|</span><span class="post-meta-pv-cv" id="" data-flag-title="hexo：搭建自己的blog"><i class="far fa-eye fa-fw post-meta-icon"></i><span class="post-meta-label">阅读量:</span><span id="busuanzi_value_page_pv"></span></span></div></div></div></header><main class="layout" id="content-inner"><div id="post"><article class="post-content" id="article-container"><h1 id="如何使用gitee-hexo在gitee上部署blog"><a href="#如何使用gitee-hexo在gitee上部署blog" class="headerlink" title="如何使用gitee+hexo在gitee上部署blog"></a>如何使用gitee+hexo在gitee上部署blog</h1><h2 id="我搭建的blog网站：kiloGrand"><a href="#我搭建的blog网站：kiloGrand" class="headerlink" title="我搭建的blog网站：kiloGrand"></a>我搭建的blog网站：<a target="_blank" rel="noopener" href="https://kilogrand.github.io/">kiloGrand</a></h2><h2 id="前期准备"><a href="#前期准备" class="headerlink" title="前期准备"></a>前期准备</h2><ul>
<li>下载git，推荐下载地址：<a target="_blank" rel="noopener" href="https://pc.qq.com/detail/13/detail_22693.html">链接</a> ，在腾讯软件中心下载比较快</li>
<li>下载nodejs <a target="_blank" rel="noopener" href="http://nodejs.cn/download/">官方下载</a>，我使用的版本是12.16.2，版本太高可能会出问题，推荐使用12.x.x系列的版本</li>
</ul>
<h2 id="安装软件"><a href="#安装软件" class="headerlink" title="安装软件"></a>安装软件</h2><ul>
<li>git 除了安装路径可以改之外，其他的不用改，一直next就行</li>
<li>nodejs 同上  </li>
</ul>
<h2 id="注册Gitee和GitHub账号"><a href="#注册Gitee和GitHub账号" class="headerlink" title="注册Gitee和GitHub账号"></a>注册Gitee和GitHub账号</h2><p><a target="_blank" rel="noopener" href="https://github.com/">github官网</a><br><a target="_blank" rel="noopener" href="https://gitee.com/">gitee官网</a><br>注意：在gitee和github中的设置-多邮件管理中,  “ [  ] 不公关我的邮箱地址”，这里不打勾，同时也要把你的邮箱设为提交邮箱<br><img src="https://img-blog.csdnimg.cn/20200821220646123.jpg?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzUwMjU4ODAw,size_16,color_FFFFFF,t_70#pic_center" alt="在这里插入图片描述"></p>
<ul>
<li>下载hexo主题sakura <a target="_blank" rel="noopener" href="https://github.com/honjun/hexo-theme-sakura">github的Sakura链接</a>  ，推荐下载链接：<a target="_blank" rel="noopener" href="https://gitee.com/wczzsmmn/hexo-theme-sakura">gitee的Sakura下载链接</a></li>
<li><p>下载cdn文件 <a target="_blank" rel="noopener" href="https://github.com/honjun/cdn">cdn文件github下载链接</a> ，推荐下载链接：<a target="_blank" rel="noopener" href="https://gitee.com/kiloGrand/cdn">cdn文件下载gitee链接</a>  </p>
<p>gitee上下载文件的方法：点击右上角克隆/下载—-下载zip<br><img src="https://img-blog.csdnimg.cn/202008212219345.jpg?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzUwMjU4ODAw,size_16,color_FFFFFF,t_70#pic_center" alt="在这里插入图片描述"></p>
</li>
</ul>
<h2 id="初始化项目"><a href="#初始化项目" class="headerlink" title="初始化项目"></a>初始化项目</h2><figure class="highlight yml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br></pre></td><td class="code"><pre><span class="line"><span class="string">*</span> <span class="string">配置git</span>  </span><br><span class="line">  <span class="string">打开git</span>    </span><br><span class="line">    <span class="string">$</span> <span class="string">git</span> <span class="string">config</span> <span class="string">--global</span> <span class="string">user.name</span> <span class="string">&#x27;gitee用户名&#x27;</span>  </span><br><span class="line">    <span class="string">$</span> <span class="string">git</span> <span class="string">config</span> <span class="string">--global</span> <span class="string">user.email</span> <span class="string">&#x27;gitee登陆邮箱&#x27;</span></span><br><span class="line"><span class="string">*</span> <span class="string">安装hexo</span>  </span><br><span class="line">    <span class="string">$</span> <span class="string">npm</span> <span class="string">install</span> <span class="string">hexo-cli</span> <span class="string">-g</span>  </span><br><span class="line"><span class="string">*</span> <span class="string">安装hexo-deployer-git</span>  </span><br><span class="line">    <span class="string">$</span> <span class="string">npm</span> <span class="string">install</span> <span class="string">hexo-deployer-git</span> <span class="string">--save</span></span><br><span class="line"><span class="string">*</span> <span class="string">初始化项目</span>  </span><br><span class="line">    <span class="string">$</span> <span class="string">cd</span> <span class="string">E://blog_project</span>  </span><br><span class="line">    <span class="string">$</span> <span class="string">hexo</span> <span class="string">init</span> <span class="string">blog</span>  </span><br><span class="line">    <span class="string">$</span> <span class="string">cd</span> <span class="string">E://blog_project/blog</span>  </span><br><span class="line">    <span class="string">$</span> <span class="string">hexo</span> <span class="string">g</span> <span class="string">//依据网页文件和新的css样式生成新的网站文件</span>  </span><br><span class="line">    <span class="string">$</span> <span class="string">hexo</span> <span class="string">s</span> <span class="string">//启动本地服务器，可以在&lt;http://localhost:4000&gt;查看网站效果</span>  </span><br></pre></td></tr></table></figure>
<h2 id="使用jsDeliver-github搭建免费的cdn"><a href="#使用jsDeliver-github搭建免费的cdn" class="headerlink" title="使用jsDeliver+github搭建免费的cdn"></a>使用jsDeliver+github搭建免费的cdn</h2><p>参考教程见 <a target="_blank" rel="noopener" href="https://www.jianshu.com/p/467290ea7e9f">简书链接</a>  </p>
<ol>
<li>在github上新建一个名为cdn的仓库 </li>
<li><p>把下载好的cdn文件解压到E://cdn中，里面的图片可以替换，文件名最后不要改变，建议在cdn目录下加一个大小在20m以内的短视频，后面会用到，下面是修改后并且上传到github后的样子：<br><img src="https://img-blog.csdnimg.cn/2020082122362875.jpg?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzUwMjU4ODAw,size_16,color_FFFFFF,t_70#pic_center" alt="在这里插入图片描述"></p>
</li>
<li><p>打开git<br> cd E://blog_project/cdn   </p>
</li>
<li><p>提交到github仓库上</p>
<figure class="highlight yml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line"><span class="string">git</span> <span class="string">init</span>					<span class="string">//初始化</span></span><br><span class="line"><span class="string">git</span> <span class="string">status</span> 					<span class="string">//查看状态</span>  </span><br><span class="line"><span class="string">git</span> <span class="string">add</span> <span class="string">.</span>  					<span class="string">//添加文件到暂存区</span>  </span><br><span class="line"><span class="string">git</span> <span class="string">commit</span> <span class="string">-m</span> <span class="string">&#x27;第一次提交&#x27;</span> 	<span class="string">//</span> <span class="string">提交到本地库</span> </span><br><span class="line"><span class="string">​git</span> <span class="string">remote</span> <span class="string">add</span> <span class="string">github</span> <span class="string">cdn仓库链接</span> 	<span class="string">//关联远程仓库</span>  </span><br><span class="line"><span class="string">​git</span> <span class="string">pull</span> <span class="string">--rebase</span> <span class="string">github</span> <span class="string">master</span> 	<span class="string">//合并远程仓库和本地仓库的冲突</span>  </span><br><span class="line"><span class="string">git</span> <span class="string">push</span> <span class="string">github</span> <span class="string">master</span> 				<span class="string">//推送到远程仓库上</span>  </span><br><span class="line"><span class="string">(jsDeliver不支持加载超过20M的资源，所以一些视频最好压缩到20M以下)</span></span><br></pre></td></tr></table></figure>
</li>
<li><p>发布仓库：浏览器打开github中新建的cdn，点击release发布, 发布版本号1.0（自定义）<br>使用方法：<br><a target="_blank" rel="noopener" href="https://cdn.jsdelivr.net/gh/user/repo@version/file">https://cdn.jsdelivr.net/gh/user/repo@version/file</a><br><a target="_blank" rel="noopener" href="https://cdn.jsdelivr.net/gh/user/repo/file">https://cdn.jsdelivr.net/gh/user/repo/file</a><br>eg：  <a target="_blank" rel="noopener" href="https://cdn.jsdelivr.net/gh/kiloGrand/cdn@1.2/img/custom/avatar.jpg">https://cdn.jsdelivr.net/gh/kiloGrand/cdn@1.2/img/custom/avatar.jpg</a>    <a target="_blank" rel="noopener" href="https://cdn.jsdelivr.net/gh/kiloGrand/cdn/img/custom/avatar.jpg">https://cdn.jsdelivr.net/gh/kiloGrand/cdn/img/custom/avatar.jpg</a><br>版本号不是必需的，是为了区分新旧资源，如果不使用版本号，将会直接引用最新资源</p>
</li>
</ol>
<h2 id="blog配置"><a href="#blog配置" class="headerlink" title="blog配置"></a>blog配置</h2><ol>
<li>首先，在gitee上新建一个仓库，仓库名为你的账户名</li>
<li><p>用编辑器打开blog文件夹，我用的是vscode：<img src="https://img-blog.csdnimg.cn/20200821231313130.jpg?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzUwMjU4ODAw,size_16,color_FFFFFF,t_70#pic_center" alt="在这里插入图片描述"></p>
</li>
<li><p>把blog/source中的所有md文件、blog/themes/Sakura/languages/zh-cn.yml和blog/themes/Sakura/_config.yml中的 ‘<a target="_blank" rel="noopener" href="https://cdn.jsdelivr.net/gh/">https://cdn.jsdelivr.net/gh/</a>…’ 改成自己的cdn的文件链接。</p>
</li>
<li>按照<a target="_blank" rel="noopener" href="https://docs.hojun.cn/sakura/docs/#/home">官方文档</a>进行配置，每当配置完一部份，可以使用下面的命令来生成网页，访问<a target="_blank" rel="noopener" href="http://localhost:4000">http://localhost:4000</a>查看网站效果<br> $ hexo clean<br> $ hexo g<br> $ hexo s  </li>
<li>配置scaffolds文件夹下的md文件，这个文件夹是关于博客文章的。</li>
</ol>
<p>注意：在配置首页媒体时，aplayer的ID是网易云音乐的歌单号，比如<a target="_blank" rel="noopener" href="https://music.163.com/#/playlist?id=4958788236">https://music.163.com/#/playlist?id=4958788236</a> ，它的ID是 4958788236，只需把原来的ID替换成你想要的歌单的ID就行了，其实这个项目的所有的音乐部分的ID都是网易云歌单号的ID，你可以用自己的网易云账户创建一个歌单，供blog使用。</p>
<h2 id="blog部署"><a href="#blog部署" class="headerlink" title="blog部署"></a>blog部署</h2><ol>
<li>生成部署文件<br> $ hexo clean<br> $ hexo g<br> $ hexo d    //上传到远程在码云上的仓库  </li>
<li>登录码云账户，打开和自己用户名相同的仓库, 点击服务，打开giteePages，点击开启。</li>
</ol>
<p><img src="https://img-blog.csdnimg.cn/20200821225438232.jpg?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzUwMjU4ODAw,size_16,color_FFFFFF,t_70#pic_center" alt="在这里插入图片描述"></p>
<h4 id="深入开发"><a href="#深入开发" class="headerlink" title="深入开发"></a>深入开发</h4><ul>
<li><a target="_blank" rel="noopener" href="https://blog.csdn.net/u011759205/article/details/104839472">xx博客</a></li>
<li><a target="_blank" rel="noopener" href="https://hexo.io/zh-cn/docs/index.html">hexo文档</a>  </li>
<li><a target="_blank" rel="noopener" href="https://guole.fun/posts/butterfly-custom/">xxblog</a></li>
</ul>
<h2 id="常见错误"><a href="#常见错误" class="headerlink" title="常见错误"></a>常见错误</h2><ul>
<li>无法push到gitee/GitHub，可能是邮箱没有设置好，或者是_config.yml中的repo配置错了</li>
<li>hexo -g生成的public中的index是空的，可能是nodejs的版本太高，建议安装nvm来切换nodejs的版本  </li>
</ul>
<h2 id="博客使用"><a href="#博客使用" class="headerlink" title="博客使用"></a>博客使用</h2><p>编写文章的两种方法：  </p>
<ul>
<li>在git下执行<br>$ hexo new 博客文章名<br>同时会在 根目录下 /source/_posts 目录下生成md文件  </li>
<li>手动到根目录下 /source/_posts 目录下，创建一个makedown 文件进行编写就可以了</li>
</ul>
</article><div class="post-copyright"><div class="post-copyright__author"><span class="post-copyright-meta">文章作者: </span><span class="post-copyright-info"><a href="https://kilogrand.gitee.io">kiloGrand</a></span></div><div class="post-copyright__type"><span class="post-copyright-meta">文章链接: </span><span class="post-copyright-info"><a href="https://kilogrand.gitee.io/2020/08/18/blog-building/">https://kilogrand.gitee.io/2020/08/18/blog-building/</a></span></div><div class="post-copyright__notice"><span class="post-copyright-meta">版权声明: </span><span class="post-copyright-info">本博客所有文章除特别声明外，均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank">CC BY-NC-SA 4.0</a> 许可协议。转载请注明来自 <a href="https://kilogrand.gitee.io" target="_blank">kiloGrand</a>！</span></div></div><div class="tag_share"><div class="post-meta__tag-list"><a class="post-meta__tags" href="/tags/hexo/">hexo</a></div><div class="post_share"></div></div><nav class="pagination-post" id="pagination"><div class="next-post pull-full"><a href="/2020/08/19/EI-clock-conclusion/"><img class="next-cover" src="/img/lab.jpg" onerror="onerror=null;src='/img/404.jpg'" alt="cover of next post"><div class="pagination-info"><div class="label">下一篇</div><div class="next_info">自制电子时钟</div></div></a></div></nav></div><div class="aside-content" id="aside-content"><div class="card-widget card-info"><div class="is-center"><div class="avatar-img"><img src="/img/profile.png" onerror="this.onerror=null;this.src='/img/friend_404.gif'" alt="avatar"/></div><div class="author-info__name">kiloGrand</div><div class="author-info__description">coder && data-science researcher</div></div><div class="card-info-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">46</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">6</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">5</div></a></div><a id="card-info-btn" target="_blank" rel="noopener" href="https://github.com/kiloGrand/"><i class="fab fa-github"></i><span>Follow Me</span></a></div><div class="card-widget card-announcement"><div class="item-headline"><i class="fas fa-bullhorn fa-shake"></i><span>公告</span></div><div class="announcement_content">This is my Blog</div></div><div class="sticky_layout"><div class="card-widget" id="card-toc"><div class="item-headline"><i class="fas fa-stream"></i><span>目录</span><span class="toc-percentage"></span></div><div class="toc-content"><ol class="toc"><li class="toc-item toc-level-1"><a class="toc-link" href="#%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8gitee-hexo%E5%9C%A8gitee%E4%B8%8A%E9%83%A8%E7%BD%B2blog"><span class="toc-number">1.</span> <span class="toc-text">如何使用gitee+hexo在gitee上部署blog</span></a><ol class="toc-child"><li class="toc-item toc-level-2"><a class="toc-link" href="#%E6%88%91%E6%90%AD%E5%BB%BA%E7%9A%84blog%E7%BD%91%E7%AB%99%EF%BC%9AkiloGrand"><span class="toc-number">1.1.</span> <span class="toc-text">我搭建的blog网站：kiloGrand</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%89%8D%E6%9C%9F%E5%87%86%E5%A4%87"><span class="toc-number">1.2.</span> <span class="toc-text">前期准备</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%AE%89%E8%A3%85%E8%BD%AF%E4%BB%B6"><span class="toc-number">1.3.</span> <span class="toc-text">安装软件</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E6%B3%A8%E5%86%8CGitee%E5%92%8CGitHub%E8%B4%A6%E5%8F%B7"><span class="toc-number">1.4.</span> <span class="toc-text">注册Gitee和GitHub账号</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%88%9D%E5%A7%8B%E5%8C%96%E9%A1%B9%E7%9B%AE"><span class="toc-number">1.5.</span> <span class="toc-text">初始化项目</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E4%BD%BF%E7%94%A8jsDeliver-github%E6%90%AD%E5%BB%BA%E5%85%8D%E8%B4%B9%E7%9A%84cdn"><span class="toc-number">1.6.</span> <span class="toc-text">使用jsDeliver+github搭建免费的cdn</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#blog%E9%85%8D%E7%BD%AE"><span class="toc-number">1.7.</span> <span class="toc-text">blog配置</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#blog%E9%83%A8%E7%BD%B2"><span class="toc-number">1.8.</span> <span class="toc-text">blog部署</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#%E6%B7%B1%E5%85%A5%E5%BC%80%E5%8F%91"><span class="toc-number">1.8.0.1.</span> <span class="toc-text">深入开发</span></a></li></ol></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%B8%B8%E8%A7%81%E9%94%99%E8%AF%AF"><span class="toc-number">1.9.</span> <span class="toc-text">常见错误</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%8D%9A%E5%AE%A2%E4%BD%BF%E7%94%A8"><span class="toc-number">1.10.</span> <span class="toc-text">博客使用</span></a></li></ol></li></ol></div></div><div class="card-widget card-recent-post"><div class="item-headline"><i class="fas fa-history"></i><span>最新文章</span></div><div class="aside-list"><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/2023/03/24/kuiper_infer-L14/" title="自制深度学习框架--实现Yolov5的推理">自制深度学习框架--实现Yolov5的推理</a><time datetime="2023-03-24T12:00:00.000Z" title="发表于 2023-03-24 20:00:00">2023-03-24</time></div></div><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/2023/03/23/kuiper_infer-L13/" title="自制深度学习框架--实现ResNet网络的推理">自制深度学习框架--实现ResNet网络的推理</a><time datetime="2023-03-23T12:00:00.000Z" title="发表于 2023-03-23 20:00:00">2023-03-23</time></div></div><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/2023/03/22/kuiper_infer-L12/" title="自制深度学习框架--算子的执行流程">自制深度学习框架--算子的执行流程</a><time datetime="2023-03-22T12:00:00.000Z" title="发表于 2023-03-22 20:00:00">2023-03-22</time></div></div><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/2023/03/21/kuiper_infer-L11/" title="自制深度学习框架--再探Tensor类并构建计算图的图关系">自制深度学习框架--再探Tensor类并构建计算图的图关系</a><time datetime="2023-03-21T12:00:00.000Z" title="发表于 2023-03-21 20:00:00">2023-03-21</time></div></div><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/2023/03/20/kuiper_infer-L10/" title="自制深度学习框架--Im2Col原理与卷积层的实现">自制深度学习框架--Im2Col原理与卷积层的实现</a><time datetime="2023-03-20T12:00:00.000Z" title="发表于 2023-03-20 20:00:00">2023-03-20</time></div></div></div></div></div></div></main><footer id="footer"><div id="footer-wrap"><div class="copyright">&copy;2022 - 2023 By kiloGrand</div><div class="footer_custom_text">Hi, welcome to my blog!</div></div></footer></div><div id="rightside"><div id="rightside-config-hide"><button id="readmode" type="button" title="阅读模式"><i class="fas fa-book-open"></i></button><button id="darkmode" type="button" title="浅色和深色模式转换"><i class="fas fa-adjust"></i></button></div><div id="rightside-config-show"><button id="rightside_config" type="button" title="设置"><i class="fas fa-cog fa-spin"></i></button><button class="close" id="mobile-toc-button" type="button" title="目录"><i class="fas fa-list-ul"></i></button><button id="go-up" type="button" title="回到顶部"><i class="fas fa-arrow-up"></i></button></div></div><div id="local-search"><div class="search-dialog"><nav class="search-nav"><span class="search-dialog-title">搜索</span><span id="loading-status"></span><button class="search-close-button"><i class="fas fa-times"></i></button></nav><div class="is-center" id="loading-database"><i class="fas fa-spinner fa-pulse"></i><span>  数据库加载中</span></div><div class="search-wrap"><div id="local-search-input"><div class="local-search-box"><input class="local-search-box--input" placeholder="搜索文章" type="text"/></div></div><hr/><div id="local-search-results"></div></div></div><div id="search-mask"></div></div><div><script src="/js/utils.js"></script><script src="/js/main.js"></script><script src="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox.umd.js"></script><script src="/js/search/local-search.js"></script><div class="js-pjax"><script>if (!window.MathJax) {
  window.MathJax = {
    tex: {
      inlineMath: [ ['$','$'], ["\\(","\\)"]],
      tags: 'ams'
    },
    chtml: {
      scale: 1.2
    },
    options: {
      renderActions: {
        findScript: [10, doc => {
          for (const node of document.querySelectorAll('script[type^="math/tex"]')) {
            const display = !!node.type.match(/; *mode=display/)
            const math = new doc.options.MathItem(node.textContent, doc.inputJax[0], display)
            const text = document.createTextNode('')
            node.parentNode.replaceChild(text, node)
            math.start = {node: text, delim: '', n: 0}
            math.end = {node: text, delim: '', n: 0}
            doc.math.push(math)
          }
        }, ''],
        insertScript: [200, () => {
          document.querySelectorAll('mjx-container:not\([display]\)').forEach(node => {
            const target = node.parentNode
            if (target.nodeName.toLowerCase() === 'li') {
              target.parentNode.classList.add('has-jax')
            } else {
              target.classList.add('has-jax')
            }
          });
        }, '', false]
      }
    }
  }
  
  const script = document.createElement('script')
  script.src = 'https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js'
  script.id = 'MathJax-script'
  script.async = true
  document.head.appendChild(script)
} else {
  MathJax.startup.document.state(0)
  MathJax.texReset()
  MathJax.typeset()
}</script></div><script async data-pjax src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script></div></body></html>